package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.ZhanghuMapper;
import com.ruoyi.system.domain.Zhanghu;
import com.ruoyi.system.service.IZhanghuService;

/**
 * 账户Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-08-12
 */
@Service
public class ZhanghuServiceImpl implements IZhanghuService 
{
    @Autowired
    private ZhanghuMapper zhanghuMapper;

    /**
     * 查询账户
     * 
     * @param zhId 账户主键
     * @return 账户
     */
    @Override
    public Zhanghu selectZhanghuByZhId(String zhId)
    {
        return zhanghuMapper.selectZhanghuByZhId(zhId);
    }

    /**
     * 查询账户列表
     * 
     * @param zhanghu 账户
     * @return 账户
     */
    @Override
    public List<Zhanghu> selectZhanghuList(Zhanghu zhanghu)
    {
        return zhanghuMapper.selectZhanghuList(zhanghu);
    }

    /**
     * 新增账户
     * 
     * @param zhanghu 账户
     * @return 结果
     */
    @Override
    public int insertZhanghu(Zhanghu zhanghu)
    {
        return zhanghuMapper.insertZhanghu(zhanghu);
    }

    /**
     * 修改账户
     * 
     * @param zhanghu 账户
     * @return 结果
     */
    @Override
    public int updateZhanghu(Zhanghu zhanghu)
    {
        return zhanghuMapper.updateZhanghu(zhanghu);
    }

    /**
     * 批量删除账户
     * 
     * @param zhIds 需要删除的账户主键
     * @return 结果
     */
    @Override
    public int deleteZhanghuByZhIds(String[] zhIds)
    {
        return zhanghuMapper.deleteZhanghuByZhIds(zhIds);
    }

    /**
     * 删除账户信息
     * 
     * @param zhId 账户主键
     * @return 结果
     */
    @Override
    public int deleteZhanghuByZhId(String zhId)
    {
        return zhanghuMapper.deleteZhanghuByZhId(zhId);
    }
}
